import request from '../../utils/request'
interface Ilogin {
  account:string
  password:string
  terminalType:string
  shopID:string
}
export  function login(data:Ilogin) {
  return request({
    url: `/auth/userlogin`,
    method: 'post',
    data,
  })
}


//根据cpu序列号查询绑定店铺
export  function getShop(cpu) {
  return request({
    url: '/system/pdm/getShop',
    method: 'get',
    params:{cpu}
   
  })
}






export  function test() {
  return request({
    url: `/posts/3`,
    method: 'get',
    // headers: {
    //   'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    // },
    
  })
}


//修改密码
export function changepwd(userId,oldPassword,newPassword) {
  return request({
    url: '/system/user/mp',
    method: 'post',
    data: {
      userId,oldPassword,newPassword
    }
  })
}